<template>
  <div>
    <el-container>
      <el-header>
        <Crumd />
      </el-header>
      <el-container>
        <el-aside width="200px">
          <el-menu default-active="2" router class="el-menu-vertical-demo">
            <el-menu-item index="/home/shou">
              <i class="el-icon-menu"></i>
              <span slot="title">首页</span>
            </el-menu-item>
            <el-submenu index="1">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span>数据管理</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="/home/list">商家列表</el-menu-item>
              </el-menu-item-group>
              <el-menu-item-group>
                <el-menu-item index="/home/user">用户列表</el-menu-item>
              </el-menu-item-group>
            </el-submenu>
            <el-submenu index="2">
              <template slot="title">
                <i class="el-icon-setting"></i>
                <span>图表管理</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="/home/about">区域图</el-menu-item>
              </el-menu-item-group>
              <el-menu-item-group>
                <el-menu-item index="/home/lo">漏斗图</el-menu-item>
              </el-menu-item-group>
            </el-submenu>
          </el-menu>
        </el-aside>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>
<script>
import Crumd from "../components/crumd";
export default {
  components: {
    Crumd,
  },
  data() {
    return {};
  },
};
</script>
<style>
.el-header {
  width: 1000px;
  margin-left: 200px;
}
.el-header,
.el-footer {
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  color: #333;
  text-align: center;
  line-height: 200px;
  margin-top: -57px;
}

.el-main {
  color: #333;
  text-align: center;
  /* line-height: 160px; */
  margin-top: -20px;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
</style>